#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>

int main()
{
    const char *fstr = "hello fwrite\n";
    const char *str = "hello write\n";
    printf("hello printf\n");
    fprintf(stdout, "hello fprintf\n");
    fwrite(fstr, strlen(fstr), 1, stdout);
    write(1, str, strlen(str));
    //close(1);
    //fork();


    //const char *fstr = "hello fwrite";
    //const char *str = "hello write";
    //printf("hello printf\n");
    //fprintf(stdout, "hello fprintf\n");
    //fwrite(fstr, strlen(fstr), 1, stdout);
    //write(1, str, strlen(str));
    ////fflush(stdout);
    ////close(1);
    ////fork();
    
    return 0;
}
